home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 001a / tmod700.zip / TMODEM.DOC next >
Text File  |  1991-08-29  |  36KB  |  958 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.                                    Tmodem
  31.                                  Version 7.00
  32.                           Copyright (c) 1989,90,91
  33.                                   Mike Bryeans
  34.                                       and
  35.                        International TeleCommunications
  36.                               All Rights Reserved
  37.  
  38.                         Table of Contents
  39.  
  40. Tmodem Command Line Switches .............................. Page   2
  41.      /F ................................................... Page   2
  42.      /R ................................................... Page   3
  43.      /U ................................................... Page   3
  44.      /S ................................................... Page   4
  45.           @ ............................................... Page   4
  46.      /K ................................................... Page   5
  47.      /N ................................................... Page   5
  48.      /P ................................................... Page   6
  49.      /V ................................................... Page   6
  50.      /B ................................................... Page   6
  51.      Locked DTE/BBS programs .............................. Page   7
  52.      /X ................................................... Page   7
  53.      /A ................................................... Page   7
  54.      Phase Shifting ....................................... Page   8
  55.      Required Switches .................................... Page   8
  56.      Your Receive Batch File .............................. Page   8
  57.      Send Batch File ...................................... Page   9
  58. Error Levels .............................................. Page   9
  59. Debug Messages ............................................ Page   9
  60. BBS/Terminal Programs ..................................... Page   9
  61. Installing Tmodem on A BBS ................................ Page  10
  62. Installing Tmodem on a Terminal Package ................... Page  10
  63. Terminal Interface Examples ............................... Page  12
  64.      Telix ................................................ Page  12
  65.           Locked Serial Ports and Telix ................... Page  13
  66.      Qmodem ............................................... Page  13
  67.      QT 2000 .............................................. Page  14
  68. BBS Examples .............................................. Page  14
  69. LIMITED SHAREWARE. ........................................ Page  14
  70.      Features that will not work. ......................... Page  14
  71.           Batch   Transfers ............................... Page  14
  72. Registering Tmodem ........................................ Page  15
  73.      $15.00 Registration .................................. Page  15
  74.      $25.00 Registration .................................. Page  15
  75. Tmodem License ............................................ Page  15
  76.      Piracy ............................................... Page  16
  77.          Tmodem          Technical Reference Manual           Page  1
  78.  
  79.                              LIMITED WARRANTY
  80.  
  81.          This   products provided "as is" without  warranty   of   any
  82.          kind.   The entire risk as to the results and performance  of
  83.          the  program  is assumed by you.  Should  the  program  prove
  84.          defective,  you  (and not International TeleCommunications  )
  85.          assume the entire cost of all necessary  servicing, repair or
  86.          correction.   Further, International TeleCommunications  does
  87.          not warrant, guarantee, or make representations regarding the
  88.          use of, or the results of the use of this program in terms of
  89.          correctness,    accuracy,   reliability,   currentness,    or
  90.          otherwise;  and  you  rely on the program  and  its   results
  91.          solely   at  your own risk.  International TeleCommunications
  92.          cannot  accept   responsibility for system  damage,  loss  of
  93.          profit,   or   any    other    special,    incidental,     or
  94.          consequential damage  resulting  from  the use or   inability
  95.          to  use  this product.
  96.  
  97.          International  TeleCommunications  DOES   warrant   to    the
  98.          original  licensee of a REGISTERED product that  the  program
  99.          disk(s)  on which  the  program  is  recorded be  free   from
  100.          defects   in materials and workmanship under normal  use  and
  101.          service  for  a period  of  ninety  (90) days from  the  date
  102.          of   delivery   as  evidenced  by  a copy  of  your  receipt.
  103.          International  TeleCommunications' entire liability and  your
  104.          exclusive  remedy  shall  be replacement  of  the   disk  not
  105.          meeting  International TeleCommunications Limited Warranty.
  106.  
  107.                        DISTRIBUTION POLICY AND COPYRIGHT
  108.  
  109.                                    COPYRIGHT
  110.  
  111.          Despite the method of marketing, Tmodem is not in  the public
  112.          domain.      It    is    copyrighted    by      International
  113.          TeleCommunications  and  Mike  Bryeans.    All   rights   are
  114.          reserved.    Copying,   duplicating, selling   or   otherwise
  115.          distributing  this  product  except  as expressly   permitted
  116.          in the TEST-DRIVE  Distribution  Policy below  is a violation
  117.          of  the  Law.   However, we grant you  the  right,   in  fact
  118.          encourage  you  to make and distribute as   many  copies   of
  119.          this TEST-DRIVE version as you  wish,  using  any  acceptable
  120.          medium of exchange, with the following provisions:
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.          Tmodem          Technical Reference Manual           Page  2
  133.  
  134.                      -- TEST-DRIVE Distribution Policy --
  135.  
  136.           1.   Please feel free to distribute this TEST-DRIVE version as
  137.                often as you like, to any interested parties.
  138.           2.   Please do not distribute the program without all of its
  139.                original related files, addendum files, and documentation.
  140.           3.   Please obtain our written permission prior to distribution
  141.                with any "Bundled" software packages.
  142.           4.   Please do not accept payment for the program; a copying fee of
  143.                $10.00 per diskette may be charged when distributed by a
  144.                non-profit user-group.
  145.           5.   Please do not alter the program or documentation in any
  146.                manner.
  147.           6.   NOTE - Individuals, groups, vendors, or other software
  148.                distribution companies which market diskettes containing
  149.                the TEST-DRIVE programs for profit must obtain written
  150.                permission from International TeleCommunications prior to
  151.                distribution.
  152.  
  153.                           Tmodem Command Line Switches
  154.  
  155.          Each  switch must be preceded by either a forward slash   '/'
  156.          or a dash '-'.
  157.  
  158.          F   Slow Computer.
  159.          R   Receive File.
  160.          U   Place incoming files in this directory
  161.          K   Keep aborted transfers
  162.          N   Node Number caller is on.
  163.          P   Com Port to use.
  164.          B   Connect Baud Rate
  165.          X   Redefine Log
  166.          S   Send File(s).
  167.          A   Calibrate  Serial  Port.
  168.          C   Cancel Error/Suggestion Screens.
  169.          V   PMS Screening Engaged.
  170.  
  171.                                       /F
  172.                               9600 bps and higher
  173.                                  Slow Computer
  174.  
  175.          If  you have a high speed modem you MUST have a  16550  Uart.
  176.          Attempting  to run at high speeds without one will result  in
  177.          errors.
  178.  
  179.          You  might sneak by without a 16550 if you have a  fast  286,
  180.          386, or 486.
  181.  
  182.          A good way to check is by watching your transfers. If you are
  183.          under  an  error correcting connect, then you  should  almost
  184.          NEVER get an error reported by ANY transfer protocol.
  185.  
  186.  
  187.          Tmodem          Technical Reference Manual           Page  3
  188.  
  189.  
  190.          Getting  errors  reported (by ANY  transfer  protocol)  while
  191.          under  MNP  or  ARQ  can only mean.
  192.  
  193.          1.  The protocol goofed (Tmodem doesn't goof).
  194.          2.  You  may  have another  application  interfering  with
  195.              serial interrupts.
  196.          3.  You have hardware problems.
  197.          4.  You do not have a 16550 Uart.
  198.  
  199.  
  200.          Since you are using Tmodem, you can rule out one.
  201.  
  202.          If  you have a 16550 installed, then you can rule out  number
  203.          four  and that leaves you with two or three.
  204.  
  205.          If you have a multi-tasker or a network and a 16550 then  the
  206.          network and/or multi-tasker is stealing to much time and  the
  207.          16550 fifo's are being over run.
  208.  
  209.          If you have a 16550 and NOTHING else that may interfere  with
  210.          the  serial  interrupts,  then  you  more  than  likely  have
  211.          hardware problems.
  212.  
  213.          If  it is option 4, buy one and install it. 16550 uarts  cost
  214.          about $20.00 and are WELL worth it.
  215.  
  216.          Unless   you   have  hardware problems, I can  HELP  you   by
  217.          kicking  in RTS flow control. This does slow down  transfers,
  218.          but it is better to slow them DOWN than experience errors.
  219.  
  220.          If  you have to, add /F to the command line. But only use  it
  221.          if  you  HAVE  to and only until you fix  the  CAUSE  of  the
  222.          problem.
  223.  
  224.                                      /R
  225.                                  Receive Files
  226.  
  227.  
  228.          When   I  encounter  this switch, I  will  go   directly   to
  229.          receive files mode.
  230.  
  231.          You  MUST make sure that /R is the very last switch used.  If
  232.          it  is not, then you will be missing important  command  line
  233.          switches.
  234.  
  235.                                       /U
  236.                      Place inbound files in this directory
  237.  
  238.          You  can direct Tmodem to place inbound files in  a  specific
  239.          directory by using the /U command.
  240.  
  241.  
  242.          Tmodem          Technical Reference Manual           Page  4
  243.  
  244.          I will verify the directory you specified, so make sure it is
  245.          a VALID directory.
  246.  
  247.          You  cannot use Drive  designators or ROOT directories  with
  248.          the /U switch.
  249.  
  250.          For  instance,   /UC:  or  /UC:\. C: and C:\ aren't listed in
  251.          the FAT and I cannot validate them.
  252.  
  253.          Make  sure you do NOT use a trailing  backslash with  the  /U
  254.          path, I'll ADD a backslash when I concate  the file name with
  255.          the path you specified.
  256.  
  257.          E.g., d:\uploads\ is NOT valid, it should be d:\uploads .
  258.  
  259.          Here is a sample of a GOOD /U setting: /UC:\TELIX\UPLOADS
  260.  
  261.                                       /S
  262.                                Send These Files
  263.  
  264.          When  I  find the /S, I will immediately  begin  sending.
  265.  
  266.          YOU  should  make  sure that you have listed  ALL  the  OTHER
  267.          commands  before using the /S. Make sure you place ONE  blank
  268.          space between the /S switch and the first filename.
  269.  
  270.          Place one blank space between ADDITIONAL files names, if
  271.          you have specified more than one. You may include a drive and
  272.          path with the file names.
  273.  
  274.          E.g.,  c:\uploads\file1.exe is a valid file name.
  275.  
  276.          You can use the DOS wild card characters '?' and '*'.  I
  277.          will  expand  those  characters to match  any  file  in  that
  278.          directory.
  279.  
  280.          I   do   not place limits on the number of files   that   can
  281.          FOLLOW  /S,  but  DOS DOES! DOS   restricts   the  number  of
  282.          characters you can place  on  a command line to 128.
  283.  
  284.          DOS   also limits you to nine batch parameter  symbols,    %1
  285.          thru %9.
  286.                                          @
  287.  
  288.               If  the  file name begins with the AT  sign,  '@',  I'll
  289.               assume  you  mean to USE the file as  a  "SEND"  control
  290.               file.
  291.  
  292.               e.g. @D:\OSIRIS\SEND2.CTL
  293.  
  294.               Since   DOS forces me to work with 128 and   nine  batch
  295.               variables,  using  @  to  send   file   names   is   the
  296.               preferred method of passing the names.
  297.          Tmodem          Technical Reference Manual           Page  5
  298.  
  299.               The information following  @ is the full drive, path,
  300.               and file name of a TEXT file.
  301.  
  302.               I   do  not place restrictions on the  number  of  files
  303.               that you  can  have listed and you can include the  full
  304.               drive,  path, along with name of the file. You can
  305.               include DOS wild card characters, '?' and '*'.
  306.  
  307.               E.g., C:\PCboard\Tlx310a.exe is valid.
  308.               E.g., C:\Telix\*.arj is valid.
  309.  
  310.               Each line in the file must contain only ONE filename and
  311.               has to end with the DOS CR/LF sequence.
  312.  
  313.               Sample Send Control File:
  314.  
  315.               C:\DRIVERS\MPT110.ZIP
  316.               C:\DRIVERS\TMOD610.ARJ
  317.               C:\DRIVERS\ZMOD*.*
  318.  
  319.  
  320.                                       /K
  321.                             Keep Aborted Transfers
  322.  
  323.          If  you  drop  carrier or time out, I will delete the aborted
  324.          file.
  325.  
  326.          If  you're  using Tmodem with a TERMINAL program,  then   you
  327.          will WANT to keep the file.
  328.  
  329.          Adding   /K  to your Tmodem command line tells  ME  you  want
  330.          to keep aborted transfers.
  331.  
  332.                    NOTE:  I will not  keep aborted  files  if
  333.                    you  abort using  the ESC key, even if you
  334.                    DO use /K.
  335.  
  336.                                       /N
  337.                                   Node Number
  338.  
  339.          If   you're running OSIRIS SE, you can include  /Nx  on   the
  340.          command line.
  341.  
  342.          E.g., /N1  /N2  /N3  . . .  /N255
  343.  
  344.          Add /N*N to your protocol command lines.
  345.  
  346.          I'll   display the callers name, city, and  state   at    the
  347.          bottom of the screen, useful when you walk into the room  and
  348.          WONDER who  is currently downloading what.
  349.  
  350.  
  351.  
  352.          Tmodem          Technical Reference Manual           Page  6
  353.  
  354.                                       /P
  355.                                    Com Port
  356.  
  357.          You  have to tell me which serial port your caller is  ON  by
  358.          including /Px on the command line.
  359.  
  360.          E.g., /P1  /P2  /P3  . . .  /P8
  361.  
  362.          If  you aren't running Osiris, you can only use P1,  P2,  P3,
  363.          or P4.
  364.  
  365.          If  you are  using Osiris, you  can  use  /P5 though /P8.
  366.  
  367.                                       /V
  368.                              Engage PMS Screening
  369.  
  370.          This  can ONLY be used on an OSIRIS system. This tells me  to
  371.          allow  Osiris  to monitor the serial port with  its  ANTI-PMS
  372.          screening  system. PMS is a method of taking over a  computer
  373.          remotely  and  Osiris has an internal  proprietary  screening
  374.          system to prevent that.
  375.  
  376.          Btw,  PMS  works with any BBS program. If you  wake  up  some
  377.          morning  and discover your BBS sub-directory missing or  your
  378.          entire harddrive seems to have been erased, then it is likely
  379.          that you've been invaded by someone using PMS.
  380.  
  381.          PMS does NOT require Tmodem to work. PMS uses the SERIAL port
  382.          and  ANY  program  that DEALS with the  serial  port:  games,
  383.          protocols, BBS programs etc.
  384.  
  385.                                       /B
  386.                                Connect Baud Rate
  387.  
  388.          You have to provide the TRUE CONNECT RATE, most  of the  time
  389.          this is the same as your SERIAL baud rate.
  390.  
  391.          e.g. /B1200  /B2400  /B9600
  392.  
  393.          If you have a high speed modem with a FIXED serial rate,  the
  394.          CONNECT  rate may not always be the same, but  that   doesn't
  395.          change anything. You still must pass  the  TRUE connect  rate
  396.          and not the SERIAL rate.
  397.  
  398.          If your terminal program isn't capably of passing the CONNECT
  399.          rate then HARD CODE 0 in as the /B parameter.
  400.  
  401.          E.g., /B0
  402.  
  403.          I will PROMPT you for the CONNECT rate.
  404.  
  405.  
  406.  
  407.          Tmodem          Technical Reference Manual           Page  7
  408.  
  409.                             Locked DTE/BBS programs
  410.  
  411.          You'll  need  to  define an  environment    variable   called
  412.          COMx=BaudRate. Replace x  with the  serial port  number   and
  413.          BaudRate with the  LOCKED  baud rate.
  414.  
  415.          e.g. COM1=19200
  416.  
  417.          Do  NOT add blank spaces or comma's. Make sure you use  Upper
  418.          Case.
  419.  
  420.          You can do that in the AUTOEXEC.BAT file or in the BATCH file
  421.          you use to CALL Tmodem.
  422.  
  423.          e.g.
  424.  
  425.          cls
  426.          Echo Loading Tmodem
  427.          SET COM2=38400
  428.          Tmodem -B%1 -P%2 -R
  429.          echo Transfer Complete.
  430.          Exit
  431.  
  432.          Tmodem can support up to 115,000 baud using a combination  of
  433.          COMx and /B.
  434.  
  435.                                       /X
  436.                                Redefine the Log
  437.  
  438.          I will write a TRANSFER log called Tmodem.Log in the  current
  439.          directory.  If I find OSIRIS= defined in the  environment,  I
  440.          will write the log in that directory.
  441.  
  442.          /X  allows  you  to DEFINE a NEW  name  and  location,  e.g.,
  443.          /XC:\TELIX\TRANS.LOG
  444.  
  445.                                       /A
  446.                              Calibrate Serial Port
  447.  
  448.          Older  IBMs have  problems dealing  with  high  speed  modems
  449.          and LOCKED DTE rates.
  450.  
  451.          Normally   this  doesn't cause problem,   but   since  Tmodem
  452.          customizes the way it sends, it does.
  453.  
  454.          /A   tells me to calibrate the serial port and if it is  off,
  455.          figure the devations into the send algorithm.
  456.  
  457.          One side  effect  is  the  detection  of inaccurate   command
  458.          line  switches, some of them. If  you  have  trouble  getting
  459.          Tmodem to work, TRY adding this switch.
  460.  
  461.  
  462.          Tmodem          Technical Reference Manual           Page  8
  463.  
  464.                                 Phase Shifting
  465.  
  466.          This  happens when the SENDER and the RECEIVER come  up  with
  467.          different  ALGORITHMS,  one or both have  inaccurate  command
  468.          line settings.
  469.  
  470.          If this happens, Tmodem will place the message "Error RT6000:
  471.          Phase Shifting!" on the screen.
  472.  
  473.          If Phase Shifting is detected, Tmodem will use a "BEST GUESS"
  474.          algorithm.  "BEST GUESS" means the transfer WILL take  place,
  475.          but  you  only  have  a 50/50  chance  of  achieving  maximum
  476.          thoughput. If it guesses wrong, you'll end up with  thoughput
  477.          about  equal to Ymodem-G, so do yourself a favor and fix  the
  478.          problem.
  479.  
  480.                                Required Switches
  481.  
  482.          Each  Tmodem installation will require TWO switches. It  does
  483.          not matter  what type of BBS/Terminal program you're going to
  484.          use.
  485.  
  486.          It does not matter if it is SEND or RECEIVE.
  487.  
  488.          /Bxxxxx and /Px
  489.  
  490.          You  should  replace   xxxxx  in  the /B  with   the  correct
  491.          CONNECT rate or 0. Replace the x in /P with  the correct  COM
  492.          port.
  493.  
  494.          /B9600 /P2  (Connect Rate 9600, COM 2)
  495.          /B2400 /P1  (Connect Rate 2400, COM 1)
  496.  
  497.          It is not important WHERE you place the switches, as long  as
  498.          they are NOT the LAST switch used.
  499.  
  500.                             Your Receive Batch File
  501.  
  502.          Your  Receive  Batch file will require  only  one  additional
  503.          switch, /R.
  504.  
  505.          It MUST be the very last switch on the command line.
  506.  
  507.          The  MINIMUM command line for receiving would be:
  508.  
  509.          Tmodem /B2400 /P1 /R
  510.  
  511.          2400  and  1 can  be supplied by DOS  batch  variables,  e.g.
  512.          Tmodem /B%1 /P%2 /R
  513.  
  514.  
  515.  
  516.  
  517.          Tmodem          Technical Reference Manual           Page  9
  518.  
  519.          Other   optional   switches,  /U  . . .  /K  etc.,  must   be
  520.          included BEFORE the /R switch.
  521.  
  522.                                 Send Batch File
  523.  
  524.          Your "SEND" batch file only "requires" ONE additional switch,
  525.          /S.
  526.  
  527.          The MINIMUM command line for sending a file:
  528.  
  529.          /B2400 /P2 /S FILENAME#1 FILENAME#2 FILENAME#3
  530.  
  531.          or
  532.  
  533.          /B2400 /P2 /S @CTRL_NAME
  534.  
  535.          2400,  2, FILENAME#1, FILENAME#2,  FILENAME#3,  etc.  may  be
  536.          supplied by  DOS  batch variables.
  537.  
  538.          E.g., Tmodem /B%1 /P%2 /S %3 %4 %5 %6 %7 %8 %9
  539.  
  540.                                 Error Levels
  541.  
  542.          I  will  exit,  following the transfer, with  an error  level
  543.          of 0  or  1.
  544.  
  545.          Zero,  0,  indicates  a  successful  transfer  and  one,   1,
  546.          indicates an error.
  547.  
  548.  
  549.                                 Debug Messages
  550.  
  551.          Tmodem   will  display several ERROR messages  when   missing
  552.          important or required command line switches.
  553.  
  554.          I.e., Missing or Illegal Baud Rate.
  555.  
  556.          Reference  The  Section(s) of this document  that  deal  with
  557.          that particular command line setting.
  558.  
  559.                              BBS/Terminal Programs
  560.  
  561.          I  use  a very basic command line setup  which  should  allow
  562.          Tmodem to be used by almost any program.
  563.  
  564.          I do NOT expect that it will work with EVERYTHING.
  565.  
  566.          If  you are using something that it will just flat  not  work
  567.          with then send it to me.
  568.  
  569.          You  can upload it or mail it and I will attempt to find  out
  570.          why.
  571.  
  572.          Tmodem          Technical Reference Manual           Page  10
  573.  
  574.                           Installing Tmodem on A BBS
  575.  
  576.          Make  sure  you read the Tmodem.doc file at least  twice  and
  577.          write  down all the command line switches, even if you  don't
  578.          think  you'll need them  all.
  579.  
  580.          It  will lowers  the chance that  you may overlook  that  one
  581.          little   switch   that  will  make  Tmodem  work  with   your
  582.          software.
  583.  
  584.          One  Pcboard  sysop complained that Tmodem just  dropped  the
  585.          uploads  in the current directory, Pcboard  required  uploads
  586.          be  routed  to a  SPECIFIC  directory, and he had  to  switch
  587.          into the upload directory manually, in his batch file.
  588.  
  589.          Had he read the tmodem.doc file, he would have known that  /U
  590.          routes uploads and would have solved his problem.
  591.  
  592.          You   should NEVER  attempt to add TMODEM to  your   terminal
  593.          software AND BBS  simultaneously.
  594.  
  595.          You   WILL need to have Tmodem installed and  debugged,   ALL
  596.          baud   rates, in  your terminal package before attempting  to
  597.          installing it on your BBS.
  598.  
  599.          Find  a  BBS that has Tmodem installed, correctly,  and  test
  600.          your terminal setup. Make sure you test at 2400 and  at 9600,
  601.          if  you have  a 9600  baud modem, by transferring   files  to
  602.          and from the  BBS. Make sure you have it tested both SEND and
  603.          RECEIVE.
  604.  
  605.          If you do not know of a BBS that HAS Tmodem set up correctly,
  606.          call 1-314-334-6369.
  607.  
  608.                     Installing Tmodem on a Terminal Package
  609.  
  610.          First,  READ your terminal program's documentation on HOW  to
  611.          install external programs.
  612.  
  613.          Know EXACTLY HOW  and  WHAT your terminal program passes   in
  614.          respects   to command line arguments. Each  terminal  program
  615.          does  this a little  differently, some VERSIONS of the   same
  616.          terminal program do it differently.
  617.  
  618.          Keeping in mind that Tmodem REQUIRES 3 switches.
  619.  
  620.          These two are ALWAYS used in BOTH batch files.
  621.  
  622.          /Bxxxx with xxxx being the CONNECT baud rate
  623.          /Px  with x being the COM Port
  624.  
  625.          Your 3rd REQUIRED switch will vary.
  626.  
  627.          Tmodem          Technical Reference Manual           Page  11
  628.  
  629.          Your Receive batch file will use /R and your SEND batch  file
  630.          will use  /S <Filename>
  631.  
  632.                   <Filename> is the NAME of the file to Send.
  633.  
  634.          Your   receive   batch  file should  also  include  /K,  keep
  635.          aborted transfers.
  636.  
  637.          Most  will  be  using  DOS BATCH  parameters  to  pass    the
  638.          information  from  your terminal program to Tmodem.
  639.  
  640.          E.g., Tmodem /K /B%1 /P%2 /R
  641.          E.g., Tmodem /B%1 /P%2 /S %3 %4 %5 %6 %7 %8 %9
  642.  
  643.          The   number   following  the percent sign can,   and   will,
  644.          vary depending   on your software. It can vary  depending  on
  645.          the  version  of your software, that's why I can't  TELL  you
  646.          what  to use for a specific program.
  647.  
  648.          There  is an EASY method you can use to FIGURE all this  out.
  649.          Place  the following line in both the SEND and RECEIVE  batch
  650.          files.
  651.  
  652.          Echo %1 %2 %3 %4 %5 %6 %7 %8 %9
  653.          pause
  654.          Tmodem <your normal command line>
  655.  
  656.          The  line  beginning  with "Echo"  shows  exactly  WHAT  your
  657.          terminal program is passing and in which % variable.
  658.  
  659.          The  BIGGEST single problem is passing the CONNECT baud  rate
  660.          to  Tmodem  when  a 9600 baud modem is  used.
  661.  
  662.          Some   Terminal programs, Telix, were not  written to  handle
  663.          smart  protocols. They pass the SERIAL baud rate  instead  of
  664.          the connect  baud rate, which isn't acceptable.
  665.  
  666.          It   is    easy    to   debug   this   problem   using    the
  667.          debugging  example outlined earlier.
  668.  
  669.          If  the  %x  variable you're using to pass   the  baud   rate
  670.          contains  9600,  19200, or 38400 when you call   a 2400  baud
  671.          system,   your  terminal program wasn't  written  to   handle
  672.          smart protocols.
  673.  
  674.                    Some  terminal  programs  (Qmodem)  offer
  675.                    your TWO  % variables for baud rate,  one
  676.                    is  the  CONNECT  rate  and  one  is  the
  677.                    SERIAL rate.
  678.  
  679.          The  solution, hard code 0 as  the  /B parameter, I'll
  680.          ASK you for the connect rate.
  681.  
  682.          Tmodem          Technical Reference Manual           Page  12
  683.  
  684.          E.g., Tmodem /B0 /P%2 /R
  685.  
  686.          Letting me KNOW you're using a LOCKED serial port is  another
  687.          common problem.
  688.  
  689.          Be  sure you set the COMx=LOCKRATE in your  environment.  You
  690.          can  do  that  by  including one of  the  following  in  your
  691.          autoexec.bat  file, or  on the line  prior to calling Tmodem,
  692.          in your "SEND" or "RECEIVE" batch files.
  693.  
  694.          Select  one of the following that reflects your serial   port
  695.          and lock rate.
  696.  
  697.          SET COM1=9600
  698.          SET COM2=9600
  699.          SET COM3=9600
  700.          SET COM4=9600
  701.          SET COM1=19200
  702.          SET COM2=19200
  703.          SET COM3=19200
  704.          SET COM4=19200
  705.          SET COM1=38400
  706.          SET COM2=38400
  707.          SET COM3=38400
  708.          SET COM4=38400
  709.  
  710.          If  you  place  the SET command in  your  AUTOEXEC.BAT  file,
  711.          REBOOT your computer so it will take effect.
  712.  
  713.                          Terminal Interface Examples
  714.  
  715.                                      Telix
  716.  
  717.          If  you have a 300, 1200, or 2400 baud modem you'll need two
  718.          batch files, one to send and one to receive.
  719.  
  720.          Tsend is for Sending file(s) and Trcv.bat is setup to RECEIVE
  721.          files.
  722.  
  723.          Trcv.bat calls Tmodem:
  724.  
  725.          Tmodem -K -UC:\UPLOADS -B%1 -P%2 -R
  726.  
  727.          Notice the -UC:\UPLOADS
  728.  
  729.          This is an optional switch that directs all files received to
  730.          a holding directory called C:\UPLOADS
  731.  
  732.          I.e., Tmodem -K -B%1 -P%2 -R
  733.  
  734.          Tsend.bat calls Tmodem:
  735.  
  736.          Tmodem -B%1 -P%2 -S %3
  737.          Tmodem          Technical Reference Manual           Page  13
  738.  
  739.                          Locked Serial Ports and Telix
  740.  
  741.          You'll   need  to  add  COMx=LOCK_RATE   to    trcv.bat   and
  742.          Tsend.bat.
  743.  
  744.          Assuming  Com 2 is used and the  lock  rate  is 19,200 baud.
  745.  
  746.          Trcv.bat:
  747.  
  748.          SET COM2=19200
  749.          Tmodem -K -UC:\UPLOADS -B%1 -P%2 -R
  750.  
  751.          Tsend.bat
  752.  
  753.          SET COM2=19200
  754.          Tmodem -B%1 -P%2 -S %3
  755.  
  756.          If  you're  using Telix with a Fixed DTE rate,  you  have   a
  757.          problem.  Telix   always  passes the SERIAL rate  in  the  %1
  758.          variable.
  759.  
  760.          The   fix  is  simply,  but  does   require  that   you   pay
  761.          attention to the CONNECT message  telix  gives you.
  762.  
  763.          You  will need to take Tsend and  Trcv.bat and make a  couple
  764.          of small modifications.
  765.  
  766.          Trcv.bat calls Tmodem :
  767.  
  768.          Tmodem -K -UC:\UPLOADS -B0 -P%2 -R
  769.  
  770.          Notice that the %1 following the -B has been replaced with  0
  771.          (zero).
  772.  
  773.          This   tells me that Telix cannot pass the TRUE connect  rate
  774.          and  I'll  open a small window in the middle  of  the  screen
  775.          displaying   4 connect rate options, select the one  that  is
  776.          correct  for the current session.
  777.  
  778.          You  need  to make the same modifications to  the   Tsend.bat
  779.          file.
  780.                                     Qmodem
  781.  
  782.                              300/1200/2400 Modems
  783.                 9600 Baud Modem, running a FLOATING serial Port
  784.  
  785.          Qmodem External Download file for Tmodem.
  786.  
  787.          <TDN.BAT>
  788.          Tmodem -B%3 -P%2 -K -R
  789.          Exit
  790.  
  791.  
  792.          Tmodem          Technical Reference Manual           Page  14
  793.  
  794.          Qmodem External Upload file for Tmodem.
  795.  
  796.          <TUP.BAT>
  797.          Tmodem -B%3 -P%2 -S %4
  798.          Exit
  799.  
  800.                  9600 Baud Modem, running a LOCKED Serial Port
  801.  
  802.          Qmodem External Download file for Tmodem.
  803.  
  804.          <TDN.BAT>
  805.          Tmodem -A -B%3 -P%2 -K -R
  806.          Exit
  807.  
  808.          Qmodem External Upload file for Tmodem.
  809.  
  810.          <TUP.BAT>
  811.          Tmodem -A -B%3 -P%2 -S %4
  812.          Exit
  813.  
  814.                                     QT 2000
  815.  
  816.                           Protocol Definition Record
  817.  
  818.          Send : -B*B -P*P -S *F
  819.          RCV  : -K -B*B -P*P -R
  820.                                     BBS Examples
  821.  
  822.          We're  no  longer  including samples  of  other  brand-x  bbs
  823.          programs.
  824.  
  825.          The examples that were submitted for varies BBS programs seem
  826.          to only work spratically and varied from system to system and
  827.          from software version to software version.
  828.  
  829.          This  confused more people than it helped and my  technically
  830.          support division was bombarded with questions they had no way
  831.          of answering.
  832.  
  833.          *************************************************************
  834.                    I M P O R T A N T  S O  R E A D  T H I S !
  835.  
  836.                               LIMITED SHAREWARE.
  837.  
  838.          Tmodem is LIMITED SHAREWARE, meaning you can try most of  the
  839.          features before you  purchase it.
  840.  
  841.                          Features that will not work.
  842.  
  843.          Batch   Transfers: You cannot use Tmodem as a BATCH  protocol
  844.          in NON-REGISTERED MODE.
  845.  
  846.          ****************************************************************
  847.          Tmodem          Technical Reference Manual           Page 15
  848.  
  849.                              Registering Tmodem
  850.  
  851.                            ($15.00 you download Key)
  852.               ($25.00 for Disk with Latest Version Mailed to You)
  853.  
  854.          Fill out the Order.Frm and Mail To :
  855.  
  856.                         International  TeleCommunications
  857.                              555 North Spring, #39
  858.                            Cape Girardeau Mo. 63701
  859.  
  860.                               $15.00 Registration
  861.  
  862.          You DOWNLOAD the Tmodem.key from the BBS at 1-314-334-6359.
  863.  
  864.  
  865.                               $25.00 Registration
  866.  
  867.          We  will   send you the key on a 5 1/2 360K  diskette   along
  868.          with  the  latest version of Tmodem.
  869.  
  870.                                Tmodem License
  871.  
  872.                              Please Read Carefully
  873.  
  874.          By   registering  Tmodem, you indicate your   acceptance   of
  875.          these terms.
  876.  
  877.          Tmodem   ("the  Software")  is  copyright  1989,  90,  91  by
  878.          International TeleCommunications and Mike Bryeans.
  879.  
  880.          The  PURCHASER   is granted  a LICENSE to use  the   software
  881.          only,   subject    to    the   following   restrictions   and
  882.          limitations.
  883.  
  884.          1. The license is to the original purchaser only, and is  not
  885.          transferable       without     written     permission      of
  886.          International TeleCommunications
  887.  
  888.          2.  The  original purchase may use the Software on  a  single
  889.          computer or single Local Area Network owned or leased by  the
  890.          original purchaser.
  891.  
  892.          You may not use the software on more than one computer or one
  893.          Local  Area  Network  even if you own or lease  all  of  them
  894.          without     the    written    consent    of     International
  895.          TeleCommunications.
  896.  
  897.          3.  The  original purchaser may make back-up  copies  of  the
  898.          Software  for  his or her own use only, subject  to  the  use
  899.          limitations in this license.
  900.  
  901.  
  902.          Tmodem          Technical Reference Manual           Page 16
  903.  
  904.          4. The original purchaser may not engage in, or permit  third
  905.          parties to engage in, any of the following:
  906.  
  907.                    A. Providing or permitting use of or disclosing the
  908.                    Software to third parties.
  909.  
  910.                    B. Making alterations or copies of any kind in  the
  911.                    Software (except as specifically permitted above).
  912.  
  913.                    C. Attempting to Un-assemble, de-compile or reverse
  914.                    engineer the Software in any way.
  915.  
  916.                    D. Granting sublicenses, leases, or other rights in
  917.                    the Software to others.
  918.  
  919.          International  TeleCommunications   reserves  the  right   to
  920.          terminate  this license  if there is a violation of its terms
  921.          or   default  by the  Original Purchaser.  Upon  termination,
  922.          all  copies of  the Software must be immediately returned  to
  923.          International TeleCommunications and  the  Original Purchaser
  924.          shall  be liable  to  International  TeleCommunications   for
  925.          any and all damages suffered as a result of  the violation or
  926.          default.
  927.                                     Piracy
  928.  
  929.          Tmodem  does  have  a ANTI-PIRACY system built  into  it.  It
  930.          wasn't designed to STOP piracy, it is designed to REPORT it.
  931.  
  932.          Several  special  copies of Tmodem have been  distributed  to
  933.          varies  sysops around the country, there is at lease  one  in
  934.          every state.
  935.  
  936.          The  special versions LOG WHO Tmodem is registered TO and  it
  937.          also logs the name of the person using it, I hope they're the
  938.          same.  Some  copies  will even LOG the  phone  number  you're
  939.          calling from, if remote caller ID is supported in that area.
  940.  
  941.          The sysop(s) periodically send the log to us and we'll  check
  942.          to see if YOU gave your copy to anyone else. We'll also check
  943.          to see if it is a VALID copy, i.e., you are registered.
  944.  
  945.          One thing I can promise you, if we CATCH you, you'll not have
  946.          a pot to piss in by the time we're finished with you.
  947.  
  948.          If  Tmodem  cost $500.00, I can understand  if  you  couldn't
  949.          AFFORD the registration fee and I wouldn't do anything  about
  950.          it.  But pirating a $15 program is ludicrous, you spend  more
  951.          than that for beer . . .
  952.  
  953.          If you HACK the Tmodem.key, don't think you're doing anything
  954.          special,  it  isn't that heavily protected. If it  takes  you
  955.          longer  than  10  minutes to break, find  a  different  hobby
  956.          because you're not hacker material.
  957.  
  958.